<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en-us">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>部门工作</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="icon" href="favicon.ico" />
    <!--jquery库-->
    <script src="/Public/bootstrap/js/jquery.min.js"></script>
    <!--bootstrap库-->
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/Public/bootstrap/js/bootstrap/bootstrap.min.js"></script>
    <!--[if lt IE 9]>
      <script src="/Public/bootstrap/js/bootstrap/html5shiv.min.js"></script>
      <script src="/Public/bootstrap/js/bootstrap/respond.min.js"></script>
    <![endif]-->
    <!--font-awesome字体库-->
    <link href="/Public/bootstrap/css/font-awesome.min.css" rel="stylesheet" />
    <!--页面加载进度条-->
    <link href="/Public/bootstrap/css/pace/dataurl.css" rel="stylesheet" />
    <script src="/Public/bootstrap/js/pace/pace.min.js"></script>
    <!--平滑滚动到顶部库-->
    <script src="/Public/bootstrap/js/jquery.scrolltopcontrol/scrolltopcontrol.js" type="text/javascript"></script>
    <!--主要写的jquery拓展方法-->
    <script src="/Public/bootstrap/js/jquery.extend.js" type="text/javascript"></script>
    <!--主要写的css代码-->
    <link href="/Public/bootstrap/css/default.css" rel="stylesheet" type="text/css" />
    <!--主要写的js代码-->
    <script src="/Public/bootstrap/js/default.js" type="text/javascript"></script>
    
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle show pull-left" data-target="sidebar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo U('Home/Index/index');?>">首页</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="javascript:void(0);">预留</a></li>
                    <li><a href="javascript:void(0);">预留</a></li>
                    <li><a href="javascript:void(0);">预留</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                           aria-expanded="false"><i class="fa fa-user fa-fw"></i><?php echo ($_SESSION['user']['username']); ?>|<?php echo ($_SESSION['user']['realname']); ?><span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="javascript:void(0);">个人信息</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo U('Home/Login/changepwd');?>"  target="right_content"><i class="fa fa-circle-o fa-fw"></i>修改密码</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo U('Home/Login/logout');?>"><i class="fa fa-sign-out fa-fw"></i>&nbsp;退出</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container-fluid all">
        <div class="sidebar">
            <ul class="nav">              
				<?php if(is_array($data['data'])): foreach($data['data'] as $key=>$v): if(empty($v['_data'])): ?><li class="has-sub">
			        		<a href="javascript:void(0);">
			        		
			        			<i class="fa fa-<?php echo ($v['ico']); ?> icon-test"></i>
			            		<span> <?php echo ($v['name']); ?> </span>
			            	</a>
			     		</li>
			  		<?php else: ?>
			    		<li class="has-sub">
			            	<a href="javascript:void(0);" class="dropdown-toggle b-nav-parent">
			            	
			                	<i class="fa fa-<?php echo ($v['ico']); ?> icon-test"></i>
			                	<span class="menu-text"> <?php echo ($v['name']); ?> </span>
			                	<i class="fa fa-caret-right fa-fw pull-right"></i>
			                </a>
			           		<ul class="sub-menu">
			            		<?php if(is_array($v['_data'])): foreach($v['_data'] as $key=>$n): ?><li> 
			                    		<a href="<?php echo U($n['mca']);?>" target="right_content" >
			                    		<i class="fa fa-circle-o fa-fw"></i>
			                        		<i class="icon-double-angle-right"></i>
			                        		<?php echo ($n['name']); ?>
			                       	 	</a>
			                    	</li><?php endforeach; endif; ?>
			         		</ul>
			     		</li><?php endif; endforeach; endif; ?>
            </ul>
        </div>
        <div class="maincontent row form-horizontal">
	       
	       		<iframe id="content-iframe" src="<?php echo U('Admin/Index/welcome');?>" frameborder="0" width="100%" height="520px" name="right_content" scrolling="auto" frameborder="0" scrolling="no"></iframe>
	    	
    	 </div>
      </div>
</body>
</html>